<h1>Listing craftrolls</h1>

<table>
  <tr>
    <th>Device</th>
    <th>Roll</th>
  </tr>

<% for craftroll in @craftrolls %>
  <tr>
    <td><%=h craftroll.device_id %></td>
    <td><%=h craftroll.roll %></td>
    <td><%= link_to 'Show', craftroll %></td>
    <td><%= link_to 'Edit', edit_craftroll_path(craftroll) %></td>
    <td><%= link_to 'Destroy', craftroll, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New craftroll', new_craftroll_path %>
